<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<h:html lang="en" xmlns="http://www.w3.org/1999/xhtml" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:p="http://primefaces.org/ui">
<h:head />
<h:body>

	<h:form id="searchForm">
	
		<p:panelGrid columns="2">
			<p:outputLabel value="CodeLabel" />
			<p:inputText value="#{invoiceController.search.code}" id="Code" />

			<p:outputLabel value="From BillingDateLabel" />
			<p:calendar value="#{invoiceController.search.billingDateFrom}" pattern="yyyy/MM/dd" id="billingDateFromCal" >
				<p:ajax event="dateSelect" update="billingDateFromCal"/>
				
				<p:ajax event="click" update="billingDateFromCal"/>
			</p:calendar>

			<p:outputLabel value="To BillingDateLabel" />
			<p:calendar value="#{invoiceController.search.billingDateTo}" pattern="yyyy/MM/dd" id="billingDateToCal"  >
				<p:ajax event="dateSelect" update="billingDateToCal"/>
			</p:calendar>
			
			<p:outputLabel value="PayTaxLabel" />
			<p:selectBooleanCheckbox value="#{invoiceController.search.payTax}" id="PayTax" />
		</p:panelGrid>

		<p:commandButton action="#{invoiceController.find()}" update="@all" value="Find" />
		<p:commandButton action="#{invoiceController.clear}" update="@all" value="Clear" />

	</h:form>

</h:body>
</h:html>
